//
//  BDJEssenceViewController.m
//  BuDeJie
//
//  Created by TFAppleWork-Summer on 2018/3/19.
//  Copyright © 2018年 TFAppleWork-Summer. All rights reserved.
//

#import "BDJEssenceViewController.h"

@interface BDJEssenceViewController ()<UIGestureRecognizerDelegate>

@end

@implementation BDJEssenceViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor redColor];

    [self p_setUpNavBar];
}
-(void)p_setUpNavBar{
    
    // 左侧按钮
    self.navigationItem.leftBarButtonItem =[UIBarButtonItem
                                            itemWithImage:[UIImage imageNamed:@"essenceNavLeftNor"]
                                            highImage:[UIImage imageNamed:@"essenceNavLeftSel"]
                                            target:self
                                            action:@selector(leftBtnClick:)];
    // 右侧
    self.navigationItem.rightBarButtonItem = [UIBarButtonItem
                                              itemWithImage:[UIImage imageNamed:@"essenceNavRightNor"]
                                              highImage:[UIImage imageNamed:@"essenceNavRightSel"]
                                              target:self
                                              action:@selector(rightBtnClick:)];
    
    // 标题
   
    UIButton *titleBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    [titleBtn setImage:[UIImage imageNamed:@"budejie"] forState:UIControlStateNormal];

   
    
    self.navigationItem.titleView = titleBtn;

   
}

- (void)leftBtnClick:(UIButton *)button{
    BDJFunc
}

-(void)rightBtnClick:(UIButton *)button{
    BDJFunc
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
   
}


@end
